export type ResBody<T = any> = Promise<{
  code: number;
  msg: string;
  data: T;
}>;

export interface ListData<T = any> {
  code: number;
  msg: string;
  total: number;
  rows: T[];
}

export interface ListBaseQuery {
  createDept?: number;
  deptId?: number | string;
  pageSize?: number;
  pageNum?: number;
  isAsc?: 'desc' | 'asc';
}
